<%inherit file="/wml/base.mako" />
<card id="login" title="EP WAP Mail">
	<do type="accept" label="Login">
		<go href="/login" method="post">
			<postfield name="username" value="$(username)" />
			<postfield name="domain" value="$(domain)" />
			<postfield name="password" value="$(password)" />
		</go>
	</do>
	<p>
	<fieldset title="Login">
		Email: <input name="username" value="${c.username}" /> at
		% if len(c.domains) > 1:
			<select name="domain">
			% for d in c.domains:
				<option value="${d}">${d}</option>
			% endfor
			</select><br />
		% else:
			${c.domains[0]}<br />
		% endif
		Password: <input name="password" type="password" />
	</fieldset>
	</p>
</card>
